﻿package com.tudou.home.newskin.buttons
{
    import com.tudou.skin.*;
    import flash.display.*;
    import gs.*;

    public class RollOverOutSprite extends ButtonOverMC implements IOverOut
    {
        private static const OVER_ALPHA:Number = 1;
        private static const OUT_ALPHA:Number = 0;

        public function RollOverOutSprite(param1:uint, param2:uint)
        {
            this.width = param1;
            this.height = param2;
            this.alpha = 0;
            return;
        }// end function

        public function getDisplay() : DisplayObject
        {
            return this;
        }// end function

        public function set isOver(param1:Boolean) : void
        {
            TweenLite.killTweensOf(this);
            var _loc_2:* = param1 ? (OVER_ALPHA) : (OUT_ALPHA);
            TweenLite.to(this, 0.3, {alpha:_loc_2});
            return;
        }// end function

    }
}
